package net.wofly.sale.commodity.service;

import java.util.List;

import net.wofly.common.persistence.PageWrapper;
import net.wofly.sale.commodity.domain.Commodity;
import net.wofly.sale.commodity.domain.CommodityTerminal;
import net.wofly.sale.commodity.domain.CommodityTerminalView;

public interface ICommodityTmlService {
	
	public CommodityTerminal findOne(String commodityTerminalID) ;
	
	 public List<CommodityTerminal> findAll(List<String> commodityTerminalIDs) ;
	
	CommodityTerminal findByCommodityIDAndCommodityTerminalTypeAndStatus(String commodityID, Integer commodityTerminalType, Integer status);

	public PageWrapper<CommodityTerminal> findAllCommodityTerminalByStatusAndHasCommodityTerminal(String commodityTerminalName, Integer status ,Integer hasCommodityTerminal,Integer pageNum, Integer pageSize);
		
	public Commodity findCommodityByCommodityTerminalID(String commodityTerminalID);
	
	public List<CommodityTerminal> findByCommodityID(String commodityID);
	
	public void saveByCommodity(Commodity commodity) ;
	
	public void updateCommodityTerminal(Commodity commodity) ;
	
	public void delByCommodityID(String commodityID) ;
	
	public PageWrapper<CommodityTerminalView> findAllCommodityTerminalViewByPage(String commodityTerminalName, String commodityTypeID, Integer status ,Integer hasCommodityTerminal,Integer pageNum, Integer pageSize);
	
	
}
